StringScanner.ScanOverSmatchI Function

Syntax

Text as C = ScanOverSmatchI as C(pattern as c)

Arguments

Text

The text between the starting and ending offset positions.

pattern

The text that you want to process. You may use the "?" (single character) and "*" (any number of characters) expressions.

Description

Skip over a pattern . Return text we scanned over.

Discussion

The <StringScanner>.ScanOverSmatchI() function looks for Find_Text (case insensitive) at the offset. The offset is positioned immediately after Find_Text.

Example

dim scanner as P
dim txt as C
txt = <<%text%
This is wonderful text
written by a great writer
%text%
scanner = stringscanner.create(txt)
? scanner.ScanOverSmatchI("Th*s")
= "This"
? scanner.GetToOffset()
= "This"
? scanner.GetRemainder()
=is wonderful prose written
by a technical writer of note.

See Also